<?php
class FarmStaticDiscounts {
    
    static public function calculateStaticDiscount($discount) {
        if ($discount['discount_branch'] != -2) {
            $GLOBALS['TYPO3_DB']->debugOutput = true;
            $GLOBALS['TYPO3_DB']->sql_query("CALL calculate_static_discount({$discount['uid']}, {$discount['discount_type']}, {$discount['discount_branch']}, {$discount['is_opt']}, {$discount['discount']});");
        }
    }
    
    static public function calculateStaticProductDiscount($productId) {
        
    }
}
?>